﻿using System;

class ExchangeOfBits
{
    static void Main()
    {
        int Number = 436224123;
        int mask = 7;
        int getFirstBitsOfNumber = (7 << 3) & Number;
        int getSecondBitsOfNumber = (7 << 24) & Number;
        getFirstBitsOfNumber = getFirstBitsOfNumber << 21;
        getSecondBitsOfNumber = getSecondBitsOfNumber >> 21;
        Number = Number & (~(mask << 3));
        Console.WriteLine(Convert.ToString(Number, 2));
        Number = Number & (~(mask << 21)); 
        Console.WriteLine(Convert.ToString(Number, 2));
        Number = Number | getFirstBitsOfNumber;
        Console.WriteLine(Convert.ToString(Number, 2));
        Number = Number | getSecondBitsOfNumber;
        Console.WriteLine(Convert.ToString(Number, 2));
        Console.WriteLine(Number);
    }
}

